﻿<!--#include file="inc/Main.asp"-->
<%
'***********************
'Code for MwCMS
'***********************
dim action : action = getForm("action", "get")
if action="makehtml" then
    echoInfo
else
	if issetup then
		select case runMode
			case "0","1"
				echoInfo
			case "2"
				if myfile.isExistFile("/"&sitePath&htmlPath&"index.html") then alert "",htmlPath&"index.html","" else alert "请先到后台生成静态",adminDir&"/",""
		end select
	else
		alert "","install/index.asp",""
	end if
end if
sub echoInfo()
    dim templatePath,infoStr
	templatePath = PubTemp&"index.html"
	with templateObj : .load(templatePath) : .parseComm() : infoStr = .content : end with
	Echo infoStr
	terminateAllObjects
end sub
%>